package masquerade.companion;

import android.os.Bundle;
import android.view.Gravity;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import android.app.Activity;

public class AuspiciosAct extends Activity {
	
	public static int AuspiciosMenu=0; 
		
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        TextView tv1 = new TextView (this);
	        tv1.setText(R.string.text_descr);
	        tv1.setTextSize(20);
	        tv1.setGravity(Gravity.LEFT);
	        
	        TextView tv5 = new TextView (this);
	        
	        TextView tv2 = new TextView (this);
	        
	        TextView tv4= new TextView (this);
	        
	        TextView tv3= new TextView (this);
	        tv3.setText(R.string.text_sistema);
	        tv3.setTextSize(20);
	        tv2.setTextSize(16);
	        tv2.setGravity(Gravity.LEFT);
	        tv4.setTextSize(16);
	        tv5.setTextSize(24);
	        
	        if (AuspiciosMenu==0){
		        
		        tv2.setText(R.string.Descricao_Auspicios1);
		        tv4.setText(R.string.Sistema_Auspicios1);
		        tv5.setText(R.string.Auspicios1);
	       }
	        if (AuspiciosMenu==1){
		        
		        tv2.setText(R.string.Descricao_Animalismo2);
		        tv4.setText(R.string.Sistema_Animalismo2);
		        tv5.setText(R.string.Animalismo2);
		        
	       }
	        if (AuspiciosMenu==2){
		        
		        tv2.setText(R.string.Descricao_Animalismo3);
		        tv4.setText(R.string.Sistema_Animalismo3);
		        tv5.setText(R.string.Animalismo3);
		        
	       }
	        if (AuspiciosMenu==3){
		        
		        tv2.setText(R.string.Descricao_Animalismo4);
		        tv4.setText(R.string.Sistema_Animalismo4);
		        tv5.setText(R.string.Animalismo4);
		        
	       }
	        if (AuspiciosMenu==4){
		        
		        tv2.setText(R.string.Descricao_Animalismo5);
		        tv4.setText(R.string.Sistema_Animalismo5);
		        tv5.setText(R.string.Animalismo5 );
		        
	       }
	        ScrollView sv1= new ScrollView (this);
	        sv1.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, 350));
	        sv1.setScrollContainer(true);
	        sv1.addView(tv2);
	        
	        
	        LinearLayout ll= new LinearLayout (this);
	        ll.setOrientation(LinearLayout.VERTICAL);  
	        ll.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
	        ll.addView(tv5);
	        ll.addView(tv1);
	        ll.addView(sv1);
	        ll.addView(tv3);
	        ll.addView(tv4);
	        
	        setContentView(ll);
	        
	    }
	    
}

